package com.xuecheng.orders.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author 勾新杰
 * @version 1.0
 * @description:
 * @date 2025/2/27 15:07
 */
@Data
@Component
@ConfigurationProperties(prefix = "pay.alipay")
public class AliPayProperties {

    /**
     * url，支付宝网关
     */
    private String url = "https://openapi-sandbox.dl.alipaydev.com/gateway.do";

    /**
     * appid，应用id
     */
    private String appid;

    /**
     * 开发者私钥
     */
    private String privateKey;

    /**
     * 参数返回格式
     */
    private String format = "json";

    /**
     * 字符编码集
     */
    private String charset = "UTF-8";

    /**
     * 签名算法
     */
    private String signType = "RSA2";

    /**
     * 支付宝公钥
     */
    private String alipayPublicKey;

    /**
     * 支付成功后的跳转地址
     */
    private String returnUrl;

    /**
     * 支付成功后的通知地址
     */
    private String notifyUrl;

    /**
     * 扫码支付地址
     */
    private String qrCodeUrl;
}
